cmake_minimum_required(VERSION 3.10)

project(osgearth_demo
	VERSION 0.1.0
	LANGUAGES CXX C)

find_package(OpenSceneGraph REQUIRED COMPONENTS osg osgDB osgGA osgUtil osgViewer)

find_package(osgEarth CONFIG REQUIRED)

add_executable(osgearth_demo
	main.cpp
	CreateTrackCallbcak.cpp)

target_link_libraries(osgearth_demo PRIVATE osgEarth)
target_link_libraries(osgearth_demo PRIVATE ${OPENSCENEGRAPH_LIBRARIES})

install(TARGETS osgearth_demo RUNTIME DESTINATION bin)

